﻿using System;
using System.Collections.Generic;
using System.Data.Entity.Spatial;
using System.Linq;
using System.Security;
using System.Text;

namespace DevWeb.Biztalk.DeploymentSettings.Data.CodeFirst
{
    public partial class IntegrationVersion
    {
        public int Id { get; set; }

        public virtual System.Guid ProductId
        {
            get;
            set;
        }

        public virtual string Version
        {
            get;
            set;
        }

        public virtual string Description
        {
            get;
            set;
        }

        public virtual System.DateTime CreateDateTime
        {
            get;
            set;
        }


        public virtual Integration Integration
        {
            get; set;
        }

        public virtual ICollection<IntegrationVersionParameter> IntegrationVersionParameters
        {
            get;
            set;
        }

        public virtual ICollection<DeploymentLog> DeploymentLogs
        {
            get;
            set;
        }

       
        public Guid ProductUpgradeCode
        {
            get
            {
                if (Integration != null) return Integration.ProductUpgradeCode;
                return new Guid();
            }
        }

        
        public string IntegrationName
        {
            get
            {
                if (Integration != null) return Integration.Name;
                return string.Empty;
            }
        }

        public int IntegrationId
        {
            get; set;
        }
    }
}
